﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Shared
{
    using SharingCenter.Web.Classes;
    public partial class MessageBox : System.Web.UI.UserControl
    {
        MessageBoxTypes _msgType = MessageBoxTypes.Generic;
        string _text = "";
        public MessageBoxTypes MessageType
        {
            get { return this._msgType; }
            set
            {
                this._msgType = value;
            }
        }

        

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            this.OuterWrapper.CssClass = "msgbox msgbox-" + _msgType.ToString().ToLower();
            this.lblText.Text = _text;
        }

        public string Text { get { return _text; } set { _text = value; } }

    }
}